package com.maas.util.mybatis.jpa.littlenb.annotation.mapper;

import com.littlenb.mybatisjpa.type.SelectorStrategy;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author sway.li
 **/
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface UpdateExDefinition {

  SelectorStrategy strategy() default SelectorStrategy.NONE;

  /**
   * default id = #{id}
   */
  String where() default "id = #{id}";



  /**
   *
   * 定制 更新的字段 如 cloumname = #{id}
   */
  String updateSet() default "";
}
